/**
 * @description 定义登录接口
 */
import { LOGIN_API, PHONE_CODE_URL,USER_INFO_URL } from "@/config/urls.conf"
import ajax from "./ajax"
export function loginApi(data){
    return ajax({
        url:LOGIN_API,
        data,
        method:'POST'
    })
}
export function getCodeApi(phone){
    return ajax({
        url:PHONE_CODE_URL,
        method:'GET',
        params:{phone}
    })
}
export function getUserInfoApi(id){
    return ajax({
        url:USER_INFO_URL,
        params:{id}
    })
}